package haizhi.fruitmall.pojo.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import haizhi.fruitmall.util.TimeUtil;

import java.util.Date;

public class Picture {

    private Long pictureId;

    private Integer pictureType;

    private String picturePath;

    @JsonSerialize(using = TimeUtil.class)
    private Date createTime;

    @JsonSerialize(using = TimeUtil.class)
    private Date updateTime;

    public Long getPictureId() {
        return pictureId;
    }

    public void setPictureId(Long pictureId) {
        this.pictureId = pictureId;
    }

    public Integer getPictureType() {
        return pictureType;
    }

    public void setPictureType(Integer pictureType) {
        this.pictureType = pictureType;
    }

    public String getPicturePath() {
        return picturePath;
    }

    public void setPicturePath(String picturePath) {
        this.picturePath = picturePath == null ? null : picturePath.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}